//导入vue-router
import {createRouter,createWebHashHistory} from 'vue-router'
//创建路由
const routes = [
    {
        path:'/',
        redirect:'/home'
    },
    {
        path:'/home',
        component:()=>import('../views/home/Home.vue')
    },
    {
        path:'/category',
        component:()=>import('../views/category/Category.vue')
    },
    {
        path:'/cart',
        component:()=>import('../views/cart/Cart.vue')
    },
    {
        path:'/profile',
       component:()=>import('../views/profile/Profile.vue')
    }
]